<!DOCtype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>vue_027_组件的综合案例</title>
    <style type="text/css">
        .container{
            width: 250px;
            margin:0 auto;
            border:1px solid red;
        }
        .title{
            background-color: #A4D0E3;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }
        .item{
            border:1px solid red;
            height: 50px;
        }
        .img{
            /* border:1px solid red; */
            float: left;
        }
        .name{
            /* border:1px solid red; */
            width:70px;
            height: 38px;
            float: left;
            line-height: 38px;
        }
        .change{
            /* border:1px solid blue; */
            float:left;
            line-height: 38px;
        }
        .change input{
            width: 30px;
            height: 25px;
        }
        a{
            background-color:#D2CFD0;
            text-decoration:none;
            padding: 0 3px;
        }
        .del{
            float: left;
            line-height: 38px;
            margin-left: 20px;
            color:red;
            font-size: 20px;
        }
        .total{
            background-color: #FFCB40;
            height: 40px;
            line-height: 40px;
        }
        .total div{
            float: right;
            margin-right:10px
        }
    </style>
</head>
<body>
    <div id="app">
       <div class="container">
           <div class="card">
               <div class="title">我的商品</div>
               <div>
                   <div class="item">
                       <div class="img"><img src="vue_027_img/1.JPG"></div>
                       <div class="name"></div>
                       <div class="change">
                           <a href="">-</a>
                           <input type="text" class="num">
                           <a href="">+</a>
                       </div>
                       <div class="del">X</div>
                   </div>
                   
                   <div class="item">
                       <div class="img"><img src="vue_027_img/2.JPG"></div>
                        <div class="name"></div>
                        <div class="change">
                            <a href="">-</a>
                           <input type="text" class="num">
                           <a href="">+</a>
                        </div>
                        <div class="del">X</div>
                    </div>
                   
                    <div class="item">
                        <div class="img"><img src="vue_027_img/3.JPG"></div>
                        <div class="name"></div>
                        <div class="change">
                            <a href="">-</a>
                            <input type="text" class="num">
                            <a href="">+</a>
                        </div>
                        <div class="del">X</div>
                    </div>
                   
                    <div class="item">
                        <div class="img"><img src="vue_027_img/4.JPG"></div>
                        <div class="name"></div>
                        <div class="change">
                            <a href="">-</a>
                           <input type="text" class="num">
                           <a href="">+</a>
                        </div>
                        <div class="del">X</div>
                    </div>
                    
               </div>
               <div class="total">
                   <div>
                       <span>总价：123</span>
                       <button>结算</button>
                   </div>
               </div>
           </div>
       </div>

    </div>
    <script src="js/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
            el:'#app',
            data:{
                
            },
            methods:{
                
            }
        });

    </script>
</body>

</html></SCRIPT>